
{extend name='admin@public/content'}
{block name="content"}
<!-- 表单搜索 开始 -->
<form autocomplete="off" class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">流水类型</label>
        <div class="layui-input-inline">
            <select name="type" class="layui-select">
                <option value="">流水类型</option>
                {foreach($list['type'] as $k=>$v)}
                {if $Think.get.type eq "$k"}
                <option selected="selected" value="{$k}">{$v}</option>
                {else}
                <option value="{$k}">{$v}</option>
                {/if}
                {/foreach}
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">时 间</label>
        <div class="layui-input-inline">
            <input name="create_at" id='create_at' value="{$Think.get.create_at|default=''}" placeholder="关注时间" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>
</form>
<script>
    window.laydate.render({range: true, elem: '#range-date'});
</script>
<!-- 表单搜索 结束 -->
<div class="layui-table-tool">
    <div class="layui-table-tool-temp">
        <div class="layui-btn-container">
            <a data-open="" class="layui-btn layui-btn-sm layui-btn-normal" lay-event="getCheckData">导出EXCEL</a>
        </div>
    </div>
</div>
<form onsubmit="return false;" data-auto="true" method="post">
    <!--{empty name='list'}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <table class="layui-table" lay-skin="line">
        <thead>
            <tr>
                <th class='text-left nowrap'>历史资金总额</th>
                <th class='text-left nowrap'>当前页资金总额</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td class='text-left nowrap'>
                    {$list.allmoney}
                </td>
                <td class='text-left nowrap'>
                    {$list.newmoney}
                </td>
            </tr>
        </tbody>
    </table>

    <input type="hidden" value="resort" name="action">
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <th class='text-left nowrap'>流水类型</th>
            <th class='text-left nowrap'>交易备注</th>
            <th class='text-left nowrap'>金额</th>
            <th class='text-left nowrap'>交易时间</th>
            <th class='text-left nowrap'>关联订单</th>
        </tr>
        </thead>
        <tbody>
        {foreach($list['list'] as $key=>$value)}
        <tr>
            <td class='text-left nowrap'>
                {$value.typeName|default='暂无'}
            </td>
            <td class='text-left nowrap'>
                {$value.name|default='暂无'}
            </td>
            <td class='text-left nowrap'>
                {$value.money|default='0'}
            </td>
            <td class='text-left nowrap'>
                {$value.addtime|default='0'}
            </td>

            <td class='text-left nowrap'>
                <a data-open='{:url("admin/adminorder/index")}?sn={$value.sn | default=""}'>{$value.sn|default='暂无'}</a>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {if isset($list.page)}<p>{$list.page|raw}</p>{/if}
    <!--{/empty}-->
</form>
{/block}
{block name="script"}
<!--表单初始化-->
<script>
    window.laydate.render({range: true, elem: '#create_at'});
    window.form.render();
    layui.use('table', function(){
        var table = layui.table;
    });
</script>
<!--引入标签设置-->
{/block}